package com.ys.erp.stage_marketing_service.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2023/9/14
 */
@Data
@Accessors(chain = true)
@Schema(description = "优惠券发放记录")
public class CouponSendRecordVO {

    @Schema(description = "券名称")
    private String couponName;

    @Schema(description = "用户昵称")
    private String userName;

    @Schema(description = "用户编号")
    private Long userId;

    @Schema(description = "发放人或活动")
    private String issueName;

    @Schema(description = "发放方式")
    private String issueMothed;

    @Schema(description = "发放时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;

    @Schema(description = "有效期起始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime validStartTime;

    @Schema(description = "有效期截至时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime validEndTime;

    @Schema(description = "优惠券状态0未使用，1已使用，2已过期")
    private Integer couponStatus;

    @Schema(description = "发放人")
    private String empName;

    private String remark;

}
